import { List } from "@kit.ArkTS"
import Food, { Category } from "./Food"
import OrderBean from "./OrderBean"

export class BaseResponse {
  code: number
  msg: string
}


export class UserInfo {
  id: number
  user_name: string
  pwd: string
}


export default class LoginResponse extends BaseResponse {
  userInfo: UserInfo
}


export class CateQueryAllResponse extends BaseResponse {
  public list: Array<Category>
}

export class HomeDataResponse extends BaseResponse {
  public banner_id_list: Array<number> = []
  public user_avatar: string = ''
  public user_welcome: string =''
  public user_level: string=''
  public user_trust: string=''

  public eat_type_list: Array<number> = []
  public func_des_list: Array<string> = []
  public bottom_img_id_list: Array<number> = []

}

export class CartQueryAllResponse extends BaseResponse {
  public list: Array<Food>
}


export class OrderQueryAllResponse extends BaseResponse {
  public list: Array<OrderBean>
}




